<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 电脑对象
        var computer = {
            color:'pink',
            G:'15kg',
            pinpai:'ASUS',
            xinghao:'1086TI',
            sing:function(){
                console.log('sang');
                console.log('movie');
                console.log('playing');
                console.log('write');
            }
            

        }
        console.log(computer);
        //按钮对象
        var btn = {
            width:18,
            height:20,
            color:'pink',
            bt:function() {
                console.log('点击');
            }
        }
        console.log(btn.width);
        console.log(btn.color);
        btn.bt();
        //车对象
        var car = {
            h:1000,
            color:'red',
            pinpai:'宝马',
            carC:function() {
                console.log('载人');
                console.log('拉货');
                console.log('耕田');
            }
        }
        car.carC();
        console.log(car.color);
        console.log(car.h);
    </script>
</head>
<body>
    
</body>
</html>